using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ProjectCastamere
{
    class Wave
    {
        List<Enemy> enemies;
        int waveNumber;


        public static Wave RandomlyGenerateWave(PlacementGrid grid, int waveNumber)
        {
            Wave w = new Wave();
            w.waveNumber = waveNumber;

            // base enemy type, health etc. on waveNumber
            w.enemies.Add(new Enemy(grid.CalculateRandomPath(), 100));

            return w;
        }

        public bool IsComplete()
        {
            // check if all the enemies are dead
            foreach (Enemy e in enemies)
            {
                if (!e.IsDead())
                {
                    return false;
                }
            }
            return true;
        }
    }
}
